package com.internal.Search.client;

import java.util.List;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.internal.SharedModule.client.MLLicensesSearchBean;

public class SearchClientUtil {

	public static void search(int liceNumberFrom){
		SearchService.Util.getInstance().getMLLicensesSearch(liceNumberFrom, new AsyncCallback<List<MLLicensesSearchBean>>() {
			
			@Override
			public void onSuccess(List<MLLicensesSearchBean> result) {
				SearchContent.drawData(result);
				
			}
			
			@Override
			public void onFailure(Throwable caught) {
				Window.alert(""+caught.getMessage());
				
			}
		});
	}
}
